import { request } from "@/utils/service"
import type * as Dashboard from "./types/dashboard"

/** 仿真资源统计 */
export function getSimResStaticsApi() {
  return request<Dashboard.SimResStaticsResData>({
    url: "/toksim/resource/simconfig/statics",
    method: "get"
  })
}

/** 博弈配置数 */
export function getGCStaticsApi() {
  return request<Dashboard.CountStaticsResData>({
    url: "/toksim/resource/by_config/statics",
    method: "get"
  })
}

/** 算法模型统计数 */
export function getAgentModelStaticsApi() {
  return request<Dashboard.CountStaticsResData>({
    url: "/toksim/resource/al_model/statics",
    method: "get"
  })
}

/** 评估模型统计数 */
export function getEvalModelStaticsApi() {
  return request<Dashboard.CountStaticsResData>({
    url: "/toksim/resource/eval_model/statics",
    method: "get"
  })
}

/** 场景统计数 */
export function getGameStaticsApi() {
  return request<Dashboard.GameStaticsResData>({
    url: "/toksim/resource/game/statics",
    method: "get"
  })
}

/** 任务统计 */
export function getTaskStaticsApi(type: string) {
  return request<Dashboard.TaskStaticsResData>({
    url: `/toksim/training/task/${type}/statics`,
    method: "get"
  })
}

/** 智能体资源统计 */
export function getAgentStaticsApi() {
  return request<Dashboard.AgentStaticsResData>({
    url: "/toksim/resource/agent/type/statics",
    method: "get"
  })
}

/** 任务标签统计 */
export function getTaskTagStaticsApi() {
  return request<Dashboard.CountStaticsResData>({
    url: "/toksim/training/task/tag/statics",
    method: "get"
  })
}
